package com.htu.tax.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.htu.tax.entity.TInvoice;
import com.htu.tax.payload.request.Invoice.update1Request;
import com.htu.tax.payload.request.Invoice.updateRequest;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.annotations.Param;

public interface TInvoiceMapper extends BaseMapper<TInvoice> {
    @ApiModelProperty(value = "添加发票")
    void addInvoice(TInvoice invoice);

    void updateState(updateRequest request);

    void updateState1(update1Request request);

    @ApiModelProperty(value = "展示发票")
    IPage<TInvoice> show(@Param("page") Page page,
                         @Param("state") Integer state);

    Integer isHaveUser(Long id);
}
